﻿<script>
    @*在頁面中定義一個數組 editors，插入*@
    define(["jquery"], function ($) {

        $(function () {
            @*加載編輯器*@
            //$('.wysihtml5').each(function (i, v) {
            //    $(v).wysihtml5()
            //});



            @*KindEditor.ready(function (K) {
            if (editors != undefined) {
                var width = $('.col-md-12').width();
                if (!width) {
                    width = ScreenWidth * 0.8;
                } else {
                    width = width * 0.8;
                }
                for (var i = 0; i < editors.length; i++) {
                    K.create('[name="' + editors[i] + '"]', {
                        width: '200px',
                        height: '600px',
                        uploadJson: '',
                        fullscreenShortcut: false,
                        langType: "zh_TW",
                        allowFileManager: false,
                        keydown: function () {
                            this.sync();
                        },
                        afterBlur: function () {
                            this.sync();
                        }
                    });
                }
            }
        });*@
        });
    });

</script>